package com.zytlifeservice.repository.find;

import com.zytlifeservice.domain.find.PayCityMarker;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * 城市持久类
 * Created by Administrator on 2017/6/3.
 */
@Repository
public interface PayCityMarkerRepository  extends JpaRepository<PayCityMarker,Long> {
    //查询省的方法
    @Query(nativeQuery = true,value = "select e.deconomize_name from pay_city_marker m,pay_city_and_economize e where e.did=m.mdid and m.market_name=?1")
    public String findEmoceName(String city);
}
